const reqInterface = require('../../../../api/models')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    info: {
      name: ''
    }
  },

  submit() {
    let self = this;
    reqInterface.PostHouse(self.data.info).then(res => {
      wx.showToast({
        title: '提交成功',
        icon: 'none'
      })
      wx.navigateTo({
        url: '/pages/estate/user/index/index',
      })
    })
  },

  nameValue(e) {
    let self = this;
    self.setData({
      'info.name': e.detail.val
    })
  },

})